package org.xiaoyu.rpc.common.annotations;

import java.lang.annotation.*;

/**
 * 用于消费端注解，表示这个服务需要rpc调用
 * Created By Have
 * 2021/7/11 14:54
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
public @interface RpcReference {
    Class<?> interfaceClass() default void.class;

    String serviceName() default "";

    String version() default "1.0";

    String group() default "";

    String path() default "";

    boolean isAsync() default false;
}
